package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
public class HelloController {

    @RequestMapping("/sayHello")
    public String sayHello(String name, Map map){
        System.out.println("HelloController.sayHello");
        System.out.println("name = " + name);

        map.put("message","Hello "+name+"!");

        return "hello";
    }


}
